package com.example.updatejniso;

public class JniInterface {
    public static Object obj;
    // Used to load the 'native-lib' library on application startup.
    static {
        System.loadLibrary("native-lib");
    }


    /**
     * A native method that is implemented by the 'native-lib' native library,
     * which is packaged with this application.
     */
    public static native void fwPathToJNI(String path, boolean updateStatus);


//    /**
//     * A native method that is implemented by the 'native-lib' native library,
//     * which is packaged with this application.
//     */
//    public static native String stringFromJNI();

    /**
     * A native method that is implemented by the 'native-lib' native library,
     * which is packaged with this application.
     */
    public static native void cmdFromJNI(byte[] buf, int len);

    /**
     * A native method that is implemented by the 'native-lib' native library,
     * which is packaged with this application.
     */
    //public native byte[] cmdToJNI(byte[] buf);
    //public final static native byte[] cmdToJNI(Integer result, Integer progress);
    public final static native byte[] cmdToJNI(Integer result);

    /**
     * A native method that is implemented by the 'native-lib' native library,
     * which is packaged with this application.
     */
    public final static native int getProcessFromJNI();


}
